import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/_test/HomeView.vue'),
    },

    // 404
    {
      path: '/:pathMatch(.*)*',
      name: 'error404',
      component: () => import('../views/_errors/404View.vue'),
    },
  ],
})

export default router
